/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Helper.TTAHelper;

import java.io.Serializable;
import java.util.Calendar;

/**
 *
 * @author Lu Xiaodi
 */
public class Helper_PIPSales implements Serializable {

    private Calendar time;
    private Double revenue;

    public Helper_PIPSales() {
    }

    public Helper_PIPSales(Calendar time, Double revenue) {
        this.time = time;
        this.revenue = revenue;
    }

    public Double getRevenue() {
        return revenue;
    }

    public void setRevenue(Double revenue) {
        this.revenue = revenue;
    }

    public Calendar getTime() {
        return time;
    }

    public void setTime(Calendar time) {
        this.time = time;
    }

    public String getTimeStr() {
        return time.get(Calendar.MONTH) + " " + time.get(Calendar.YEAR);
    }

    @Override
    public String toString() {
        return this.getTimeStr() + ": " + revenue;
    } 
}
